import request from '@/utils/request'
var qs = require('qs')
export function getPartyInfoList(params) {
  return request({
    url: 'partyWorkInfo/list',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function addPartyInfo(params) {
  return request({
    url: 'partyWorkInfo/save',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function deletePartyInfo(params) {
  return request({
    url: 'partyWorkInfo/delete',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function addSearch(params) {
  return request({
    url: 'partyWorkInfo/input',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function getPartyType(params) {
  return request({
    url: 'partyWorkType/listAll',
    method: 'post',
    data: qs.stringify(params)
  })
}
